package com.diepu.www.client.proxy.partner.request.own;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.zjdiepu.www.request.BaseRequest;

public class DiepuIcbcQryMarginRequest extends BaseRequest implements Serializable{
	
	private static final long serialVersionUID = 1L;

	/**
	 *	总余额<br/>
	 *  长度: 18<br/>
	 *  说明：单位元，保留两位小数
	 */
	private Double totalbal;

	private String userId;
	private String loginName;
	
	private List<Account> accounts = new ArrayList<Account>();
	private Account account;
	
	public Account newAccount()
	{
		return new Account();
	}
	
	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public List<Account> getAccounts() {
		return accounts;
	}

	public void setAccounts(List<Account> accounts) {
		this.accounts = accounts;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public Double getTotalbal() {
		return totalbal;
	}

	public void setTotalbal(Double totalbal) {
		this.totalbal = totalbal;
	}

	public class Account implements Serializable
	{
		private static final long serialVersionUID = 1L;
		
		/**
		 *	开户网点br/>
		 *  长度: 8<br/>
		 */
		private String instcode;
		/**
		 *	账号<br/>
		 *  长度: 19<br/>
		 */
		private String accno;
		/**
		 *	子账号序号<br/>
		 *  长度: 3 <br/>
		 *  说明：定期存单为子账户序号，保证金则为保证金编号
		 */
		private String sub;
		/**
		 *	余额	<br/>
		 *  长度: 18<br/>
		 *  说明：单位元，保留两位小数
		 */
		private Double bal;
		
		public String getInstcode() {
			return instcode;
		}
		public void setInstcode(String instcode) {
			this.instcode = instcode;
		}
		public String getAccno() {
			return accno;
		}
		public void setAccno(String accno) {
			this.accno = accno;
		}
		public String getSub() {
			return sub;
		}
		public void setSub(String sub) {
			this.sub = sub;
		}
		public Double getBal() {
			return bal;
		}
		public void setBal(Double bal) {
			this.bal = bal;
		}
	}
}
